import request from '@/utils/request.js'

//添加学生
export const ExamAddService = (examData) => {
    return request.post('/exam', examData)
}

//修改学生
export const ExamUpdateService = (examData) => {
    return request.put('/exam', examData)
}

//删除学生
export const ExamDeleteService = (id) => {
    console.log(id)
    return request.delete('/exam?id=' + id)
}


//搜索获取学生信息
export const ExamListBySearchService = (input,select,currentPage,pageSize) =>{
    return request.get('/exam/search', {
        params: {
            input: input,
            select: select,
            page: currentPage,
            size: pageSize
        }
    })
}

//搜索获取班级信息
export const ExamListBySearchTeacherService = (input,select,teacherId,currentPage,pageSize) =>{
    return request.get('/exam/searchTeacher', {
        params: {
            input: input,
            select: select,
            teacherId:teacherId,
            page: currentPage,
            size: pageSize
        }
    })
}
